package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_service_combo")
@ApiModel(value="t_service_combo对象", description="服务套餐")
public class ServiceCombo extends BaseEntity {

    private static final long serialVersionUID=1L;

    @OperateLogFiled(name = "服务套餐ID")
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "套餐id")
    @TableField("pkg_id")
    private Integer pkgId;

    @ApiModelProperty(value = "服务订单号")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty(value = "账单号")
    @TableField("bill_code")
    private String billCode;

    @ApiModelProperty(value = "订单状态 1-待付款，2-待付款(代扣失败)，3-履约中，4-待付款（非首次），5-已完成，6-暂停服务(代扣失败)、7-已取消、8、已终止\"")
    @TableField("order_state")
    private Integer orderState;

    @ApiModelProperty(value = "支付状态 0-待付款，1-付款完成，2-付款取消")
    @TableField("pay_state")
    private Integer payState;

    @ApiModelProperty(value = "下单用户的id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "下单用户账号")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "下单用户的手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "燃气户号")
    @TableField("subs_code")
    private String subsCode;

    @ApiModelProperty(value = "服务周期开始时间")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "服务周期结束时间")
    @TableField("end_time")
    private Date endTime;

}
